package com.qfedu.service.impl;

import com.qfedu.dao.ReportDao;
import com.qfedu.pojo.Report;
import com.qfedu.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ReportServiceImpl implements ReportService {
    @Autowired
    private ReportDao reportDao;
    @Override
    public List<Report> select(Integer id) {
        return reportDao.findById(id);
    }

    @Override
    public void update(Report report) {
        reportDao.updateById(report);
    }
}
